import { openBuildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  getAppList: {//列表
    url: '/adminc/v1/system_manage/p_application/get_app_list',
    method: 'get'
  },
  applyAuth: {//授权
    url: '/adminc/v1/system_manage/p_application_auth/apply_authorize',
    method: 'post'
  },
  //获取单位树的接口
  getCompanyTree: {
    // url: '/adminc/v1/organization_manage/o_org/get_obs_tree',
    url: '/adminc/v1/organization_manage/o_org/get_company_tree',
    method: 'get'
  },
}

export default openBuildService(settings)
